import request from '@/utils/request'

// 新增车辆报备
export function manageCar(data) {
    return request({
        url: `/manage/oa/car`,
        method: 'post',
        data
    })
}
// 车辆报备列表
export function carList(data) {
    return request({
        url: `/manage/oa/car/list`,
        method: 'get',
        data
    })
}
// 车辆报备详情
export function carListDetail(id) {
    return request({
        url: `/manage/oa/car/${id}`,
        method: 'get'
    })
}

// 审核通过 车辆报备
export function carExamineYes(id) {
    return request({
        url: `/manage/oa/car/ok/${id}`,
        method: 'put',
    })
}
// 审核不通过 车辆报备
export function carExamineNo(id) {
    return request({
        url: `/manage/oa/car/reject/${id}`,
        method: 'put',
    })
}
//  车辆报备 审核
export function carExamineRemove(id) {
    return request({
        url: `/manage/oa/car/${id}`,
        method: 'delete',
    })
}
// 修改车辆报备
export function carEdit(data) {
    return request({
        url: `/manage/oa/car`,
        method: 'put',
        data
    })
}